package com.sky.service;

import com.sky.vo.OrderReportVO;
import com.sky.vo.SalesTop10ReportVO;
import com.sky.vo.TurnoverReportVO;
import com.sky.vo.UserReportVO;

import javax.servlet.http.HttpServletResponse;
import java.time.LocalDate;

public interface ReportService {

    /**
    * 得到数据报表
    * @param begin、end
    * @return TurnoverReportVO
    */
    TurnoverReportVO getReport(LocalDate begin, LocalDate end);

    /**
     * 用户数据报表
     * @param begin、end
     * @return TurnoverReportVO
     */
    UserReportVO getUserReport(LocalDate begin, LocalDate end);


    /**
    * 订单数据报表
    * @param begin
    end
    * @return OrderReportVO
    */
    OrderReportVO getOrderReport(LocalDate begin, LocalDate end);

    /**
    * top10
    * @param begin
    end
    * @return SalesTop10ReportVO
    */
    SalesTop10ReportVO getTop10(LocalDate begin, LocalDate end);

    /**
    * 导出运营数据报表
    * @param response
    * @return void
    */
    void exportBusinessData(HttpServletResponse response);
}
